package com.ruoyi.gxs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gxs.mapper.GxsSubtypeMapper;
import com.ruoyi.gxs.domain.GxsSubtype;
import com.ruoyi.gxs.service.IGxsSubtypeService;

/**
 * 扣分子类型Service业务层处理
 * 
 * @author 高晓松
 * @date 2023-12-27
 */
@Service
public class GxsSubtypeServiceImpl implements IGxsSubtypeService 
{
    @Autowired
    private GxsSubtypeMapper gxsSubtypeMapper;

    /**
     * 查询扣分子类型
     * 
     * @param gxsSubtypeId 扣分子类型主键
     * @return 扣分子类型
     */
    @Override
    public GxsSubtype selectGxsSubtypeByGxsSubtypeId(Long gxsSubtypeId)
    {
        return gxsSubtypeMapper.selectGxsSubtypeByGxsSubtypeId(gxsSubtypeId);
    }

    /**
     * 查询扣分子类型列表
     * 
     * @param gxsSubtype 扣分子类型
     * @return 扣分子类型
     */
    @Override
    public List<GxsSubtype> selectGxsSubtypeList(GxsSubtype gxsSubtype)
    {
        return gxsSubtypeMapper.selectGxsSubtypeList(gxsSubtype);
    }

    /**
     * 新增扣分子类型
     * 
     * @param gxsSubtype 扣分子类型
     * @return 结果
     */
    @Override
    public int insertGxsSubtype(GxsSubtype gxsSubtype)
    {
        return gxsSubtypeMapper.insertGxsSubtype(gxsSubtype);
    }

    /**
     * 修改扣分子类型
     * 
     * @param gxsSubtype 扣分子类型
     * @return 结果
     */
    @Override
    public int updateGxsSubtype(GxsSubtype gxsSubtype)
    {
        return gxsSubtypeMapper.updateGxsSubtype(gxsSubtype);
    }

    /**
     * 批量删除扣分子类型
     * 
     * @param gxsSubtypeIds 需要删除的扣分子类型主键
     * @return 结果
     */
    @Override
    public int deleteGxsSubtypeByGxsSubtypeIds(Long[] gxsSubtypeIds)
    {
        return gxsSubtypeMapper.deleteGxsSubtypeByGxsSubtypeIds(gxsSubtypeIds);
    }

    /**
     * 删除扣分子类型信息
     * 
     * @param gxsSubtypeId 扣分子类型主键
     * @return 结果
     */
    @Override
    public int deleteGxsSubtypeByGxsSubtypeId(Long gxsSubtypeId)
    {
        return gxsSubtypeMapper.deleteGxsSubtypeByGxsSubtypeId(gxsSubtypeId);
    }
}
